package control;


import dao.Local_imp;
import dao.Local_int;
import java.util.ArrayList;
import model.Local;


/**
 *
 * @author juliana_carlos
 */

    public class Local_cont implements Local_int{
    private Local_imp espImp;
    @Override
    public void create(Local e) {
        espImp = new Local_imp();
        espImp.create(e);
    }
    @Override
    public ArrayList<Local> read() {
        espImp = new Local_imp();
        return espImp.read();
    }
    @Override
    public void update(Local e) {
        espImp = new Local_imp();
        espImp.update(e);
    }
    @Override
    public void delete(Local e) {
        espImp = new Local_imp();
        espImp.delete(e);
    }
     @Override
    public ArrayList<Local> search(Local e) {
        espImp = new Local_imp();
        return espImp.search(e);
     }
}

